package com.unlcn.ils.kas.dao.mapper.order;

import com.unlcn.ils.kas.dao.model.order.PushOrderLog;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 拉取订单日志表 Mapper 接口
 * </p>
 *
 * @author qichao
 * @since 2018-04-17
 */
public interface PushOrderLogMapper extends BaseMapper<PushOrderLog> {

    /**
     * 查询当天记录
     * @param type
     * @param pushThreadName
     * @return
     */
    List<PushOrderLog> selectNowDay(@Param("type") Integer type, @Param("pushThreadName") String pushThreadName);

    /**
     * 查询最后一次拉取的开始时间
     * @param type
     * @return
     */
    Date getLastTime(@Param("type") Integer type);
}
